import { getConfig } from "@/ultils/configHelper";

export function getUserId() {
  const tokenName = getConfig("SUPABASE_AUTH_TOKEN");
  const token = JSON.parse(localStorage.getItem(tokenName));
  const teacherId = token.user.id;
  return teacherId;
}

export function getToken() {
  const tokenName = getConfig("SUPABASE_AUTH_TOKEN");
  const token = JSON.parse(localStorage.getItem(tokenName));
  return token;
}
